package com.student.model;

import com.common.model.Project;
import com.common.model.StudentUser;

public class IntentProject {

	private Integer id;
	private int level;
	private Integer pro_id;
	private Integer stu_id;
	//学生给老师的留言
	private String message;
	
	/**
	 * 未选择该学生的理由
	 */
	private String reason;
	
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	//Project用于级联查询意向题目信息
	private Project project;
	private StudentUser student;
	
	public StudentUser getStudent() {
		return student;
	}
	public void setStudent(StudentUser student) {
		this.student = student;
	}
	public Project getProject() {
		return project;
	}
	public void setProject(Project project) {
		this.project = project;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public Integer getPro_id() {
		return pro_id;
	}
	public void setPro_id(Integer pro_id) {
		this.pro_id = pro_id;
	}
	public Integer getStu_id() {
		return stu_id;
	}
	public void setStu_id(Integer stu_id) {
		this.stu_id = stu_id;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
	public String getFormatLevel(){
		String res = "第";
		switch (level) {
		case 1:
			res+="一";
			break;
		case 2:
			res+="二";
			break;
		case 3:
			res+="三";
			break;
		case 4:
			res+="四";
			break;
		case 5:
			res+="五";
			break;
		case 6:
			
			res+="六";
			break;
		case 7:
			res+="七";
			break;
		default:
			break;
		}
		
		res += "志愿";
		return res;
		
	}
	@Override
	public String toString() {
		return "IntentProject [id=" + id + ", level=" + level + ", pro_id="
				+ pro_id + ", message=" + message + ", student=" + student
				+ "]";
	}
	
}
